home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 19 / Mac Magazin and MacEasy Magazine CD - Issue 19.iso / Musik & Kunst / Ear Workout 2.1 / source code / ear_globals.h < prev    next >
Text File  |  1996-01-07  |  2KB  |  51 lines

  1.  
  2. //---- options & preferences ----
  3. int spell_dim7_enharmonically = 1;
  4.  
  5. //---------------- mac sound stuff --------------------------
  6. unsigned char my_wave_table[WAVE_TABLE_SIZE];
  7. double temp_wave_table[WAVE_TABLE_SIZE];
  8. int wave_table_size = WAVE_TABLE_SIZE;
  9. int have_wave_table = 0;
  10. int have_temp_wave_table = 0;
  11. int pitch_offset = 0;
  12.     /* call toolbox routines with pitch+pitch_offset; e.g. if you sampled
  13.        four periods of the waveform, pitch_offset = -24 for a two-octave
  14.        offset; (actually done in play_chord) */
  15. long init_chan_list[NCHAN] = {initChan0,initChan1,initChan2,initChan3};
  16. short kind_of_chan_list[NCHAN] = {waveTableSynth,waveTableSynth,waveTableSynth,waveTableSynth};
  17. SndChannelPtr my_snd_chan[NCHAN];
  18. int made_snd_chan[NCHAN] = {0,0,0,0};
  19. int chans_used = 4;
  20.  
  21. int have_sample_storage = 0;
  22. Handle sound_handle = (Handle) 0;
  23.  
  24. //------------- other stuff --------------
  25. int resources_available = 0;
  26.  
  27. short normal_font_size = 12;
  28. Style normal_text_face = 0;
  29. short normal_font = systemFont;
  30.  
  31. int n_windows = 0;
  32. complete_window *my_windows[MAX_WINDOWS];
  33. complete_window *where_is_about_chord_complete_window;
  34.  
  35. int interval_window_exists = 0;
  36. int chord_window_exists = 0;
  37. int sing_interval_window_exists = 0;
  38. int about_chord_window_exists = 0;
  39. int about_ear_training_window_exists = 0;
  40. int chord_help_window_exists = 0;
  41. //---- major and minor scales
  42. int interval_is_in_major_scale[] = {1,0,1,0,1,1,0,1,0,1,0,1};
  43. int interval_is_in_minor_scale[] = {1,0,1,1,0,1,0,1,1,0,1,0};
  44.  
  45. //---- communication between chord_den_mother and about_chord_den_mother:
  46.  int have_previous_chord;
  47.  int previous_n_items,previous_item[MAX_CHORD_ITEMS];
  48.  int previous_n_notes,previous_chord[MAX_CHORD_ITEMS];
  49.  int previous_root;
  50.  
  51.